//package com.aliyun.mgt.service.impl;
//
//
//import com.aliyun.mgt.AbstractBaseTest;
//import MonitorService;
//import org.junit.Test;
//import org.springframework.beans.factory.annotation.Autowired;
//
//public class MonitorInfoServiceImplTest extends AbstractBaseTest {
//
//    @Autowired
//    MonitorService monitorService;
//
//    @Test
//    public void saveMonitorTest(){
////        MonitorInfoAdd monitorInfoAdd = new MonitorInfoAdd()
////                .setMonitorName("测试8")
////                .setMonitorMsgSourceId("znts")
////                .setReportChannelId(3)
////                .setMonitorType(1)
////                .setReportChannelName("嘻嘻11")
////                .setMonitorDescription("我是一段描述")
////                .setOwnerDept("123456789")
////                .setOwnerDeptName("一大队")
////                .setUseStatus(0)
////                .setReporter(Arrays.asList(new FourAObjectEntity().setName("张三").setKey("1234567890")))
////                .setOwner(Arrays.asList(new FourAObjectEntity().setName("张三").setKey("1234567890")))
////                .setLimitUnit(1)
////                .setLimitValue(10)
////                .setRestrainUnit(1)
////                .setRestrainValue(20);
////        Object o = monitorService.saveMonitor(monitorInfoAdd);
////        System.out.println(o);
//    }
//
//    @Test
//    public void listTest(){
////        MonitorInfoQuery pageQuery = new MonitorInfoQuery();
////        pageQuery.setPageNum(1)
////                 .setPageSize(10)
////                 .setRole(1);
////
////        Object o = monitorService.listMonitor(pageQuery);
////        System.out.println("========================");
////        System.out.println(o);
//    }
//}
